package com.xlf.common.model;

import java.util.ArrayList;
import java.util.List;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Page;

@SuppressWarnings("serial")
public class Email extends Model<Email> {
	public static final Email dao = new Email();

	public Page<Email> exeSearchSql(int pageNumber, int pageSize) {
		StringBuffer where = new StringBuffer(" from email where 1=1 ");
		List<Object> param = new ArrayList<Object>();
		where.append(" order by createtime");
		return paginate(pageNumber, pageSize, "select *", where.toString(), param.toArray());
	}
}
